import request from '@/utils/request'

// 查询租赁服务信息列表
export function listService(query) {
  return request({
    url: '/construction/service/list',
    method: 'get',
    params: query
  })
}

// 查询租赁服务信息详细
export function getService(rentalId) {
  return request({
    url: '/construction/service/' + rentalId,
    method: 'get'
  })
}

// 新增租赁服务信息
export function addService(data) {
  return request({
    url: '/construction/service',
    method: 'post',
    data: data
  })
}

// 修改租赁服务信息
export function updateService(data) {
  return request({
    url: '/construction/service',
    method: 'put',
    data: data
  })
}

// 删除租赁服务信息
export function delService(rentalId) {
  return request({
    url: '/construction/service/' + rentalId,
    method: 'delete'
  })
}

// 导出租赁服务信息
export function exportService(query) {
  return request({
    url: '/construction/service/export',
    method: 'get',
    params: query
  })
}


export function findAllSupper(query) {
  return request({
    url: '/construction/service/findAllSupper',
    method: 'get',
    params: query
  })
}


export function findAllTeam() {
  return request({
    url: '/construction/service/findAllTeam',
    method: 'get',
    params: null
  })
}


export function findAllTeamTwo() {
  return request({
    url: '/construction/service/findAllTeam',
    method: 'get',
    params: null
  })
}
